import {post} from "./api"

function order(user){
    return new Promise(
        function (resolve, reject){
            let order=[post('/userOrder',user),post('/userPay',user),post('/carry',user)]
            let p=Promise.all(order);
            p.then(result=>{
                resolve(result)
            }

        )

    })
    }


export {
    order
}


